/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jeggtimer;

import java.util.TimerTask;

/**
 *
 * @author User
 */
public class ViewUpdater extends TimerTask{
    Ticker ticker;
    JeggtimerView jv;
    public void setCrap(Ticker t,JeggtimerView v){
        this.ticker=t;
        this.jv=v;
    }
    @Override
    public void run() {
        if(ticker.going()){
            jv.getJTextField1().setText(ticker.minAsStr());
            jv.getJTextField2().setText(ticker.secAsStr());
        }
    }
}
